<!DOCTYPE html>
<html>
<head>
    <include file="Include:meta"/>
    <title>编辑运营周报-目的地运营集团数据管理平台</title>
    <include file="Include:style"/>
    <link rel="stylesheet" href="__PUBLIC__/mobile/css/mobiscroll.min.css">
</head>
<body style="background: #f3f3f3;">
<div class="header">
    <a class="back_btn" href="javascript:history.back(-1);"></a>
    编辑运营周报
</div>
<include file="Include:commu_menu"/>
<div class="content">
    <div class="communicate_add" style="padding-bottom:64px;">
        <form action="__APP__/Mobile/CrmProjects/weekly_edit" method="post">
            <input type="hidden" name="weekly_id" value="{$res_weekly['weekly_id']}">
            <div class="form_item">
                <div class="form_item_tit">
                    周期：{$res_weekly['year']}年{$res_weekly['year_week']}
                </div>
                <div class="form_item_tit">
                    心情状态
                </div>
                <div class="form_item_box label_box">
                    <for start="1" end="6">
                        <label class="form_label w60b radio <if condition=" $res_weekly['mood'] eq $i">active</if>"
                        for="mood{$i}">
                        <input type="radio" name="mood" id="mood{$i}" value="{$i}"
                        <if condition="$res_weekly['mood'] eq $i">checked</if>
                        >{:get_mood($i)}&nbsp;&nbsp;
                        </label>
                    </for>
                </div>
                <div class="form_item_box">
                    <ul class="choice_list">
                        <li class="task_li">
                            <textarea name="tswk" placeholder="本周工作">{$res_weekly['tswk']}</textarea>
                        </li>
                        <li class="task_li">
                            <textarea name="nxwk" placeholder="下周工作">{$res_weekly['nxwk']}</textarea>
                        </li>
                        <li class="task_li">
                            <textarea name="description" placeholder="问题描述">{$res_weekly['description']}</textarea>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="build_btn paddbox">
                <div>
                    <input id="submit" type="submit" value="提交" class="sub_btn">
                </div>
            </div>
        </form>
    </div>
</div>
<include file="Include:javascript"/>
<script src="__PUBLIC__/mobile/js/mobiscroll.min.js"></script>
<script>
    $(function () {
        $('#submit').click(function () {
            var mood = $("input[name='mood']:checked").val()
            var tswk = $("textarea[name='tswk']").val()
            var nxwk = $("textarea[name='nxwk']").val()
            if (mood.length > 0 && tswk.length > 0 && nxwk.length > 0) {
                $('#submit').css({'background': '#8E8E8E'})
                $(this).val("提交中...");
            } else {
                defeated_alert('带*为必填项');
            }
        })
    })
</script>
</body>
</html>